<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/index.php/index/Index/test/username/abc/sex/1" method="post">
   <p>
    <input type="text" name="username" value="" placeholder="请输入用户名">
   </p>
    <p>
        爱好:
        <label><input type="checkbox" name="hobby[]" value="1" />足球</label>
        <label><input type="checkbox" name="hobby[]" value="2" />篮球</label>
        <label><input type="checkbox" name="hobby[]" value="3" />电脑游戏</label>
        <label><input type="checkbox" name="hobby[]" value="4" />逛街</label>
        <label><input type="checkbox" name="hobby[]" value="5" />睡觉</label>
    </p>
    <button>提交</button>
</form>
</body>
</html>